package io;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;

public class FOSDemo {
    public static void main(String[] args) throws IOException {
        File file=new File("book.txt");
        FileOutputStream out=new FileOutputStream(file);
        out.write("你好".getBytes(StandardCharsets.UTF_8));
 //       out.write();
        out.close();

    }
}
